import Vue from 'vue'
import Vuex from 'vuex'

// import createPersistedState from 'vuex-persistedstate'

Vue.use(Vuex)
// console.log(createPersistedState);
const state = {
	historyAddress: []
}

const store = new Vuex.Store({
	state,
	mutations: {
		addHistoryAddress(state, payload) {
			state.historyAddress.push(payload)
		}
	},
	// plugins: [
	// 	createPersistedState({
	// 		storage: window.sessionStorage
	// 	})
	// ]
})

export default store
